Repository navigation
fix(platform-objects): no-mail invite outcome states the verified-address rule; Import Users says "Already pending" - #35274
Conversation
…-address rule On a deployment without live mail, the link_only outcome of the four invite_user mirrors and resend_invitation stopped telling the admin to use Copy Invite Link: accepting needs a verified address, so the copied link only admits the sign-up. The copy now states the rule, the social or SSO exception, and the operator path (a platform administrator creates the account). Translations regenerated (en) and re-translated (ten locales). No behaviour change. Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me Co-authored-by: Claude <noreply@anthropic.com>
…iming anyone was told sys_user.import_sso_users labelled its summary.alreadyPending field and its alreadyPending column "Already pending, told again", which reads true beside "Why not told: deactivated" for a deactivated pending person, who is re-added without telling the host. Both now read "Already pending", as Add User does; the host columns keep the told answer. Translations regenerated (en) and re-translated (ten locales). Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me Co-authored-by: Claude <noreply@anthropic.com>
…min to Copy Invite Link Pins the link_only rule the previous commit wrote: neither the invite_user mirrors nor resend_invitation hand the admin Copy Invite Link as the way in, in English or in any of the ten translated bundles. Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me Co-authored-by: Claude <noreply@anthropic.com>
…old" The alreadyPending count and column read "Already pending"; whether the host was told stays the host columns' answer, as on Add User. Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 22 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 11 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 25b001cc0ad38f2ed0d1b5c9ca5dd447d7709085 && git checkout 25b001cc0ad38f2ed0d1b5c9ca5dd447d7709085
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f4dbcc2153566226f283c79c73255369c2c97587 ffa2ad230ccdf712106b653eb18bc6a578ba9ac3 && git checkout -B drift-repro f4dbcc2153566226f283c79c73255369c2c97587 && git merge --no-ff ffa2ad230ccdf712106b653eb18bc6a578ba9ac3
node scripts/docs-audit/affected-docs.mjs --json f4dbcc2153566226f283c79c73255369c2c97587
|
|
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me Final green head for L1: Checks at this head: 37 success, 16 skipped, 0 failed; mergeable clean. Not governed ( |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
|
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me Landing · head
Status: |
Requested by Bill · project thread
Fixes #34889
Fixes #35164
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Clause-②: no
Metadata-protocol: none
维护者速读
alreadyPending的统计与列标题从「Already pending, told again」改为「Already pending」。十种语言翻译同步。packages/platform-objects/src/identity/invite-outcome-messages.ts(两条link_only文案)、packages/platform-objects/src/identity/sys-user.object.ts(import_sso_users结果的两个标题)、packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts(译文样本)。pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2 src/identity/invitation-delivery-copy.test.ts src/identity/cloud-managed-visibility.test.ts,预期两个文件全绿。What changes
INVITE_USER_OUTCOME_MESSAGES.link_only(the fourinvite_usermirrors: Users, Members, Invitations, the organization page) andRESEND_INVITATION_OUTCOME_MESSAGES.link_onlystop telling the admin to "Use Copy Invite Link on the invitation to share it." Accepting, declining and listing an invitation need a verified address, so on a deployment without live mail a copied link admits the sign-up and nothing more. The copy now states the rule, the one exception (an invitee whose social or SSO sign-in verifies the address) and the operator path (a platform administrator creates the account), matchingcontent/docs/deployment/self-hosting.mdx. The file header records the rule; a comment onsys_invitation.copy_invitation_linksays what the link admits. No behaviour change: the outcome, the action and Copy Invite Link behave as before.sys_user.import_sso_users'ssummary.alreadyPendingfield andalreadyPendingcolumn read "Already pending" instead of "Already pending, told again", as Add User'spendingAgainalready does. A deactivated pending person is re-added withhost.notified: false, reason: 'deactivated'; whether the host was told stays the "Hosting organization told" and "Why not told" columns' answer.enregenerated from the source withnode scripts/check-i18n-bundles.mjs --write; the ten translated locales carry hand-written translations of the new leaves (the generator keeps translated values; AGENTS.md Documentation Guardrails)..changeset/34889-identity-outcome-copy.md,patchon@objectstack/platform-objects.claude/issue-35164-changelog-18-5-0, because AGENTS.md makespackages/*/CHANGELOG.mdrelease-owned: never edited in a code PR.Tests
invitation-delivery-copy.test.ts: thelink_onlycopy ofinvite_userandresend_invitationdoes not contain the Copy Invite Link label, in English and in each translated bundle's own label for every mirror.cloud-managed-visibility.test.ts:import_sso_userslabelssummary.alreadyPendingand thealreadyPendingcolumn "Already pending", and the host column keeps "told".scripts/ablation-replace.mjs, mutation proven on disk, restore proven by blob and emptygit diff HEAD): putting the old "Use Copy Invite Link" sentence back into bothlink_onlycopies turns the 2 newlink_onlycases red (2 failed / 38 passed); putting "Already pending, told again" back on the column turns the label case red (1 failed / 62 passed). The pre-change bundles atcdb327fdhold each locale's translated label 6 times (the label plus the fivelink_onlycopies), so the translated leg was red on them too.Acceptance notes
ui/packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsxkeeps its own fixture copy of the oldlink_onlytail (LINK_ONLY_TAIL). It is a test-local fixture that feeds the console a declared message and asserts the toast relays it; it does not read the producer, so it stays green and is not a pin on this text. Noted, not changed (outside this card's file surface).docs/qa/platform-checklist/areas/ux-conventions.json(the invite-outcome regression row) quotes the oldlink_onlysentence verbatim as the expected toast. A checklist run of that row on a no-mail deployment will now read the new text. Noted for the checklist owner, not changed here (outside this card's file surface).content/docs/releases/v18/18-3.mdxnames Copy Invite Link for the expired-invitation gate, which is still true; left as released.self-hosting.mdxalready states the rule and the operator path; unchanged.plugin-auth/src/auth-route-ledger.tsdescribes the add-sso-user route's behaviour ("the host is told again, unless the person is deactivated"), which is accurate and does not quote this label; the plugin-audit mention test, a cli test and a ui data test use the phrase in unrelated senses.Verification
All readings at head
ffa2ad230c(branch baseorigin/maine8a78c4bd).Build and tests: platform-objects
pnpm --workspace-concurrency=2 --filter '@objectstack/platform-objects^...' buildunderos-verify-lock.sh:VERDICT command-exit 0.pnpm --filter @objectstack/platform-objects test && pnpm --filter @objectstack/platform-objects typecheckunder the lock:Test Files 123 passed (123),Tests 2050 passed (2050),check:test-typecheck: OK,VERDICT command-exit 0.abl12 failed / 38 passed then restored (blob == HEAD,git diff HEADempty);abl21 failed / 62 passed then restored.Derived gate families (dispatch-gates --commands, 67)
pnpm check:i18n("all bundles in sync, no undeclared authoring keys"),pnpm check:i18n-stale-fill,pnpm check:nul-bytes,pnpm check:doc-authoring,pnpm check:published-files,pnpm check:issue-citations,pnpm check:type-check-coverage,node scripts/check-empty-changeset.mjs --base origin/main,node scripts/check-adr-0087-registration.mjs --base origin/main.pnpm check:dual-build-cjs-loads, exit 3 PREREQUISITE NOT MET (reads every package'sdist/; only the platform-objects closure was built locally). CI runs it.dispatch-gates --ran: "67 derived famil(ies) accounted for — 66 run, 1 NOT-MEASURED", exit 0.overlap-check --branch=claude/issue-34889-identity-outcome-copy:VERDICT clean exit 0againstorigin/mainand fix(auth)!: a server outside development mode refuses a development seed credential #34717 (sharessys-user.object.tsand the eleven translation bundles, merges cleanly).test:repo, the full farm and the type-check lanes are CI's.Generated by Claude Code